{php $top_name=$cat.name;}{template "header.html"}

<div class="page-container">
    <div class="page-content-wrapper">
        <div class="page-content bg-b">

            <div class="container">
                <div class="news-title">
                    {$title}
                </div>
                <div class="news-title-btn">
                    <div class="left"><span class="source">{$author}</span><span class="r_time">{$updatetime}</span></div>
                    <div class="right"><span class="num2">{dr_show_hits($id)}</span>阅读<span class="line"></span><span class="num2">{$comments}</span>评论</div>
                </div>
                <div class="news-content">
                    {$content}
                </div>
                <div class="hide-news-content text-center">
                    <a>展开内容</a>
                </div>
            </div>

            <div class="container bg-h">
                <div class="news-keyword-tags">
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">单选按钮字段: danxuananniu</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>选择值：{$danxuananniu} </p>
                            <p>选择的名称：
                                {php $field = dr_field_options('danxuananniu');}
                                {$field[$danxuananniu]} </p>
                        </div>
                    </div>


                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">下拉选择字段: xialaxuanze</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>选择值：{$xialaxuanze} </p>
                            <p>选择的名称：
                                {php $field = dr_field_options('xialaxuanze');}

                                {$field[$xialaxuanze]} </p>
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">复选框字段: fuxuankuang</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>选择值：
                                {loop $fuxuankuang $value}
                                <label class="label label-sm label-default">{$value}</label>
                                {/loop}
                            </p>
                            <p>选择的名称：

                                {php $field = dr_field_options('fuxuankuang');}
                                {loop $field $name $value}
                                {if in_array($name, $fuxuankuang)}
                                <label class="label label-sm label-default">{$value}</label>
                                {/if}
                                {/loop}

                            </p>
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">城市联动选择字段: ldcd</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>联动菜单名称：{dr_linkage('address', $ldcd, 0, 'name')}</p>
                            <p>联动菜单顶级的名称：{dr_linkage('address', $ldcd, 1, 'name')}</p>
                            <p>面包屑导航：{dr_linkagepos('address', $ldcd, ' - ')}</p>
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">单个文件上传: dangewenjian</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>文件的地址：{dr_get_file($dangewenjian)}</p>
                            <p>文件的下载地址：{dr_down_file($dangewenjian)}</p>

                            <p>图片缩略图200x200：{dr_thumb($thumb, 200, 200)}
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">	多个文件或图片 : dgwjhtp</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            {loop $dgwjhtp $i $c}
                            <p>
                                标题：{$c.title}<br>
                                文件原始地址：{dr_get_file($c.file)}<br>
                                图片缩略图：{dr_thumb($c.file, 200, 200)}<hr>
                            </p>
                            {/loop}

                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">	图片专用 : tpzy</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            {loop $tpzy $i $c}
                            <p>
                                图片原始地址：{dr_get_file($c)}<br>
                                图片缩略图：{dr_thumb($c, 200, 200)}<hr>
                            </p>
                            {/loop}

                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">日期时间格式: inputtime</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>默认输出：{$inputtime}</p>
                            <p>自定义时间：{dr_date($_inputtime, 'Y-m-d')}</p>
                            <p>友好的时间：{dr_fdate($_inputtime)}</p>
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">	内容关联（新闻） nrglxw</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            {if $nrglxw}
                            {module module=news IN_id=$nrglxw num=5 return=r}
                            <p><a href="{$r.url}">{$r.title}</a></p>
                            {/module}
                            {else}
                            没有关联
                            {/if}
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">参数属性 spsx</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            {loop $spsx $i $c}
                            <p>{$c.name}：{$c.value}</p>
                            {/loop}
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">	视频文件	 spwj</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>文件：{dr_get_file($spwj.file)}</p>
                        </div>
                    </div>
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">	颜色选取	 ysxqfyb</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            <p>{$ysxqfyb}</p>
                        </div>
                    </div>

                    <div class="portlet light bordered ">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">百度地图 baiduditu</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            {dr_baidu_map($baiduditu, 17, '100%', '400')}
                        </div>
                    </div>

                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">腾讯地图 baiduditu</span>
                            </div>

                        </div>
                        <div class="portlet-body">
                            {dr_qq_map($baiduditu, 15, '100%', '400')}
                        </div>
                    </div>


                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <span class="caption-subject font-dark bold ">阅读收费 yuedushoufei</span>
                            </div>

                        </div>
                        <div class="portlet-body">

                            {dr_show_buy($id)}

                            <table>
                                {cache name=MEMBER.group return=group}
                                {if $group.id > 2}
                                <tr>
                                    <td align="left" width="90">{$group.name}</td>
                                    <td align="left"></td>
                                </tr>
                                {loop $group.level $level}
                                <tr>
                                    {php $lid=$group['id'].'_'.$level['id'];}
                                    <td align="left" style="padding-left:40px">{$level.name}</td>
                                    <td align="left">
                                        {$yuedushoufei[$lid]} {SITE_SCORE}
                                    </td>
                                </tr>
                                {/loop}
                                {/if}
                                {/cache}
                            </table>

                        </div>
                    </div>
                </div>
            </div>

            <div class="container bg-h">
                <div class=" news-table">
                    <div class="title"><span>相关内容</span></div>
                    <ul class="list_normal list_news">
                        <!--此标签用于调用相关文章，tag=关键词1,关键词2，多个关键词,分隔，num=显示条数，field=显示字段-->
                        {related id=$id catid=$catid tag=$tag num=5}
                        <li>
                            <p class="img">
                                <img src="{dr_thumb($t.thumb, 100, 100)}">
                            </p>
                            <p class="tit"><a href="{$t.url}">{$t.title}</a></p>
                            <p class="txt clearfix">
                                <span class="left">{$t.updatetime}</span>
                                <span class="right">人气：{$t.hits}</span></p>
                        </li>
                        {/related}
                    </ul>
                </div>
            </div>

            <div class="container bg-h">
                <div class=" news-table" id="comment-post-div">
                    <div class="title"><span>网友评论</span></div>
                    <div class="nr">
                        {dr_module_comment(MOD_DIR, $id)}
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<div class="footFixed" id="foot_btn_fixed">
    <div class="reply_hd clearfix display1" id="reply_hd">
        <ul>
            <li><a href="{MODULE_URL}" class="share">回首页</a></li>
            <li><span class="num comment-post-div">{$comments}</span></li>
            <li onclick="dr_module_favorite('{MOD_DIR}', '{$id}', 0);"><span class="zan" id="favorite">收藏</span></li>
            <li><a href="javascript:;" id="openReply" class="btn comment-post-div"><i class="fa fa-edit"></i> 写评论</a></li>
        </ul>
    </div>
</div>
{template "footer.html", "/"}